package cn.edu.ctbu.websql.repository;

import cn.edu.ctbu.websql.domain.Course;
import org.springframework.data.domain.Page;
import org.springframework.data.domain.Pageable;
import org.springframework.data.jpa.repository.JpaRepository;

import java.util.List;

public interface CourseRepository extends JpaRepository<Course,Integer> {
    List<Course> findAllByNoLike(String no);
    Page<Course> findAll(Pageable pageable);
}